package com.qzy.mybatisplus.service.impl;

import com.qzy.mybatisplus.dao.KohlerDao;
import com.qzy.mybatisplus.entity.KohlerEntity;
import com.qzy.mybatisplus.service.KohlerService;
import com.qzy.mybatisplus.utils.PageUtils;
import com.qzy.mybatisplus.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;



@Service("kohlerService")
public class KohlerServiceImpl extends ServiceImpl<KohlerDao, KohlerEntity> implements KohlerService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<KohlerEntity> page = this.page(
                new Query<KohlerEntity>().getPage(params),
                new QueryWrapper<KohlerEntity>().eq("is_deleted",1)
        );

        return new PageUtils(page);
    }

}